package com.zhhl;

import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;
import com.jld.common.communicate.HttpClient;

public class test {

	public static void main(String[] args) throws Exception {
		
		BigDecimal fee = (new BigDecimal("1.00").multiply(new BigDecimal("0.006")).setScale(2, BigDecimal.ROUND_HALF_DOWN));
		System.out.println(fee);
		String url = "http://mall.zh-top.cn/wx/oauth.shtml";
		String encode = URLEncoder.encode(url,"utf-8");
		System.out.println(encode);
		String jsonResult = "";

		HttpClient client = new HttpClient("http://el.bjce.gov.cn/elms/gjwweb/personspace/checkExamInfo.action", "POST", 2000, 2000);
		try {
			Map<String, String> data = new HashMap<String, String>();
			data.put("queryCourseID", "111772440");
			data.put("currentTime", "0");
			
			client.send(data, "UTF-8");
			jsonResult = client.getResult();
			System.out.println(jsonResult);
			
			
			
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		
		
	}
}
